//
//  MYCollectionView.h
//  PetExchange
//
//  Created by a on 2021/3/7.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@protocol CollectViewDataChangeDelegate <NSObject>//协议

- (void)loadMoreDataWithCollectViewTag:(NSInteger)tableViewTag;

- (void)refreshDataWithCollectViewTag:(NSInteger)tableViewTag;
@end

@interface MYCollectionView : UICollectionView
@property (nonatomic , strong)  UIView  *backView;
@property (nonatomic , strong)  UIImageView  *backImageView;
@property (nonatomic , strong)  UIImageView  *tipLabel;
@property (nonatomic , assign)  NoDataType noDataType;

@property (nonatomic , strong)  id <CollectViewDataChangeDelegate>dataChangeDelegate;


@property (nonatomic , copy)  void  (^loadMoreDataBlock)(void);
@property (nonatomic , copy)  void  (^refreshDataBlock)(void);


- (void)removeMJRefresh;
- (void)addMJHeader;
- (void)addMJFooter;
@end

NS_ASSUME_NONNULL_END
